<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/teleweb/common/global.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国通信服务</title>
<link href="teleweb/css/ztf.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/roll.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/content.css" rel="stylesheet" type="text/css" />
<script src="teleweb/js/submitFunctions.js" type="text/javascript"></script>
</head>
<body>

<form name="downloadForm" action="download.action" method="post">
	<input type="hidden" name="filePaht" id="filepath"/>
	<input type="hidden" name="fileName" id="filename"/>
</form>

<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- 主体table -->
  <%request.setAttribute("panel","Index");%>
  <%@ include file="/teleweb/common/include/header.jsp" %>
        
  <tr>
    <!---首页内容--->
    <td class="new_indexcontent">
    <!---圆角--->
    <div class="box-cir">
		<div class="t_l"></div>
		<div class="t_m"></div>
		<div class="t_r"></div>
		<div class="m_l"></div>
		<div class="m_m1">
	    	<!---标题内容--->
			<div class="new_heading1">
	            <h3>文件资料</h3>
	            <a href="queryFilePublish.action?pageSize=10" class="new_more">测试Criteria>></a>
	            <a href="listFilePublish.action?pageSize=10" class="new_more">更多>></a>
	        </div>
	        <div class="new_setheight">
		        <c:if test="${!empty fp.resultList}">
		            <ul class="new_list1">
						<c:forEach items="${fp.resultList}" var="fp">
							<li><a href="#" title="${fp.displayName}" onclick="downloadFile('${fp.filePath}','${fp.realName}');return false;">${fp.displayName}</a></li>
				        </c:forEach>
				    </ul>
				</c:if>
			</div>
			<user:manager>
            <div class="new_publish">
            	<button onclick="window.location.href='${ctx}/requestPage.action?page=pubfile&attachNum=1'">发布</button>
			</div>
			</user:manager>
		</div>
		<div class="m_r"></div>
		<div class="b_l"></div>
		<div class="b_m"></div>
		<div class="b_r"></div>
	</div>
    <!---圆角--->
	<div class="box-cir box-cir2">
		<div class="t_l"></div>
		<div class="t_m"></div>
		<div class="t_r"></div>
		<div class="m_l"></div>
		<div class="m_m1">
    		<!---标题内容--->
			<div class="new_heading1">
            	<h3>知识共享</h3>
            	<a href="listKnowledgeShare.action?pageSize=10" class="new_more">更多>></a>
            </div>
            <div class="new_setheight">
	            <c:if test="${!empty ks.resultList}">
		            <ul class="new_list1">
						<c:forEach items="${ks.resultList}" var="ks">
							<li><a href="#" title="${ks.displayName}" onclick="downloadFile('${ks.filePath}','${ks.realName}');return false;">${ks.displayName}</a></li>
				        </c:forEach>
				    </ul>
				</c:if>
			</div>
			<user:manager>
            <div class="new_publish">
            	<button onclick="window.location.href='${ctx}/requestPage.action?page=pubknowledge&attachNum=1'">发布</button>
			</div>
			</user:manager>
		</div>
		<div class="m_r"></div>
		<div class="b_l"></div>
		<div class="b_m"></div>
		<div class="b_r"></div>
	</div>
    <!---圆角--->
	<div class="box-cir">
		<div class="t_l"></div>
		<div class="t_m"></div>
		<div class="t_r"></div>
		<div class="m_l"></div>
		<div class="m_m1">
    		<!---标题内容--->
			<div class="new_heading1">
            	<h3>工作动态</h3>
            	<a href="listWorkNews.action?pageSize=10" class="new_more">更多>></a>
            </div>
            <div class="new_setheight">
	            <c:if test="${!empty wn.resultList}">
		            <ul class="new_list1">
						<c:forEach items="${wn.resultList}" var="wn" varStatus="statusWN">
							<li><a title="${wn.title}" href="detailWorkNews.action?pageSize=1&id=${wn.id}&worknews_pager.offset=${statusWN.index}">${fn:substring(wn.title, 0,40)}</a></li>
				        </c:forEach>
				    </ul>
				</c:if>
			</div>
			<user:manager>
            <div class="new_publish">
            	<button onclick="window.location.href='${ctx}/worknews-edit.action'">发布</button>
			</div>
			</user:manager>
		</div>
		<div class="m_r"></div>
		<div class="b_l"></div>
		<div class="b_m"></div>
		<div class="b_r"></div>
	</div>
    <!---圆角--->
	<div class="box-cir box-cir2">
		<div class="t_l"></div>
		<div class="t_m"></div>
		<div class="t_r"></div>
		<div class="m_l"></div>
		<div class="m_m1">
    	<!---标题内容--->
			<div class="new_heading1">
            	<h3>员工问答</h3>
            	<a href="listQuestionAnswer.action?pageSize=10" class="new_more">更多>></a>
            </div>
            <div class="new_setheight">
	            <c:if test="${!empty qa.resultList}">
		            <ul class="new_list1">
						<c:forEach items="${qa.resultList}" var="qa" varStatus="statusQA">
							<li><a title="${qa.question}" href="detailQuestionAnswer.action?pageSize=1&id=${qa.id}&status=${qa.status}&publish_pager.offset=${statusQA.index}">${fn:substring(qa.question, 0,40)}</a></li>
				        </c:forEach>
				    </ul>
				</c:if>
			</div>
			<user:manager>
            <div class="new_publish">
            	<button onclick="window.location.href='${ctx}/listQuestionAnswer.action'">解答</button>
			</div>
			</user:manager>
		</div>
		<div class="m_r"></div>
		<div class="b_l"></div>
		<div class="b_m"></div>
		<div class="b_r"></div>
	</div>
    </td>
  </tr>
  <%@ include file="/teleweb/common/include/tail.jsp"%>
</table>
</body>
</html>